Fix prefix argument for which-key-show-major-mode (#239)
authorYunhao Zhao <yunhaozhaots@gmail.com>
Sun, 16 Feb 2020 13:50:11 +0000 (21:50 +0800)
committerGitHub <noreply@github.com>
Sun, 16 Feb 2020 13:50:11 +0000 (08:50 -0500)
which-key.el

index e5127eefdbef552bae9fda5402debd8936bd19f6..8c88b44c17784d95f1a9dc287e250c905b40cf00 100644 (file)
@@ -2317,7 +2317,7 @@ after first page."
 This function will also detect evil bindings made using
 `evil-define-key' in this map. These bindings will depend on the
 current evil state. "
-  (interactive)
+  (interactive "P")
   (let ((map-sym (intern (format "%s-map" major-mode))))
     (if (and (boundp map-sym) (keymapp (symbol-value map-sym)))
         (which-key--show-keymap